package com.zofer.study.chainOfResponsibility;

/**
 * 总经理
 */
public class GeneralManager extends Handler{

    @Override
    public String applyFee(long fee) {
        String msg = "";
        if (fee < 1000){
            msg = "总经理已同意费用为:"+fee;
            System.out.println(msg);
        }else {
            //没权限审批这么大的金额,流转到上级
            getNextHandler().applyFee(fee);
        }
        return msg;
    }
}
